package repositories

import (
	"context"

	"baseService/internal/domain/entities"
)

// UserRepository 定义用户仓储接口
type UserRepository interface {
	BaseRepository[entities.User]
	Paginator[entities.User]

	// GetByUsername 根据用户名获取用户
	GetByUsername(ctx context.Context, username string) (*entities.User, error)
	// List 基于查询选项获取用户列表
	List(ctx context.Context, options *QueryOptions) ([]*entities.User, int64, error)
}
